package operation;

import book.Book;
import book.BookList;

/**
 * @program: 11.19
 * @description:
 * @author: 李鑫月
 * @create: 2021-11-19 17:15
 **/
public class DisplayOperation implements IOperation {
    public void work(BookList bookList){
        System.out.println("展示图书");
        int size=bookList.getUsedSize();
        for (int i = 0; i <size ; i++) {
//            Book book=bookList.getPos(i);
//            System.out.println(book);
            System.out.println(bookList.getPos(i).toString());
      }
    }
}
